package com.fare.taluo.vo.core;

import java.math.BigDecimal;
import java.math.RoundingMode;



public class StatisticsTaskEntityVo {
	private String grabchannel;
	private String grabdate;
	private Long total;
	private Long successNum;
	private Long failNum;
	private Long actualNum;//实际抓取数量
	//各种失败原因的状态  
	private Long secondFail;   // -2表示     抓取失败
	private Long thirdFail;   //-3表示     解析失败
	private Long forthFail;   //-4表示     其他失败
	private Long otherFail;   //-10表示  未定义的失败，没用的
	private Long waiting;		  //  0 表示 等待
	private Long starting;    //　1　启动中
	private Long working;     // 2  执行中
	
	private Long status;		//失败状态参数
	private Long grabchannelID; //id号
	private String allbyteLength;//总流量
	
	public String getAllbyteLength() {
		return allbyteLength;
	}
	public void setAllbyteLength(Long allbyteLength) {
		float a = allbyteLength;
		float b = (a/1024)/1024;
	    this.allbyteLength = new BigDecimal(b).setScale(2, RoundingMode.HALF_UP).toString();
	}
	
	public Long getWaiting() {
		return waiting;
	}
	public void setWaiting(Long waiting) {
		this.waiting = waiting;
	}
	public Long getStarting() {
		return starting;
	}
	public void setStarting(Long starting) {
		this.starting = starting;
	}
	public Long getWorking() {
		return working;
	}
	public void setWorking(Long working) {
		this.working = working;
	}

	public Long getGrabchannelID() {
		return grabchannelID;
	}
	public void setGrabchannelID(Long grabchannelID) {
		this.grabchannelID = grabchannelID;
	}
	public Long getStatus() {
		return status;
	}
	public void setStatus(Long status) {
		this.status = status;
	}
	public String getGrabchannel() {
		return grabchannel;
	}
	public void setGrabchannel(String grabchannel) {
		this.grabchannel = grabchannel;
	}
	public String getGrabdate() {
		return grabdate;
	}
	public void setGrabdate(String grabdate) {
		this.grabdate = grabdate;
	}
	public Long getTotal() {
		return total;
	}
	public void setTotal(Long total) {
		this.total = total;
	}
	public Long getSuccessNum() {
		return successNum;
	}
	public void setSuccessNum(Long successNum) {
		this.successNum = successNum;
	}
	public Long getFailNum() {
		return failNum;
	}
	public void setFailNum(Long failNum) {
		this.failNum = failNum;
	}
	public Long getActualNum() {
		return actualNum;
	}
	public void setActualNum(Long actualNum) {
		this.actualNum = actualNum;
	}
	public Long getSecondFail() {
		return secondFail;
	}
	public void setSecondFail(Long secondFail) {
		this.secondFail = secondFail;
	}
	public Long getThirdFail() {
		return thirdFail;
	}
	public void setThirdFail(Long thirdFail) {
		this.thirdFail = thirdFail;
	}
	public Long getForthFail() {
		return forthFail;
	}
	public void setForthFail(Long forthFail) {
		this.forthFail = forthFail;
	}
	public Long getOtherFail() {
		return otherFail;
	}
	public void setOtherFail(Long otherFail) {
		this.otherFail = otherFail;
	}
	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("StatisticsTaskEntityVo [grabchannel=");
		builder.append(grabchannel);
		builder.append(", grabdate=");
		builder.append(grabdate);
		builder.append(", total=");
		builder.append(total);
		builder.append(", successNum=");
		builder.append(successNum);
		builder.append(", failNum=");
		builder.append(failNum);
		builder.append(", actualNum=");
		builder.append(actualNum);
		builder.append(", secondFail=");
		builder.append(secondFail);
		builder.append(", thirdFail=");
		builder.append(thirdFail);
		builder.append(", forthFail=");
		builder.append(forthFail);
		builder.append(", otherFail=");
		builder.append(otherFail);
		builder.append(", waiting=");
		builder.append(waiting);
		builder.append(", starting=");
		builder.append(starting);
		builder.append(", working=");
		builder.append(working);
		builder.append(", status=");
		builder.append(status);
		builder.append(", grabchannelID=");
		builder.append(grabchannelID);
		builder.append(", allbyteLength=");
		builder.append(allbyteLength);
		builder.append("]");
		return builder.toString();
	}
	
	
}
